package com.yuanchu.order.client;

import com.yuanchu.order.entity.YoshopUploadFileEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-02-17 23:57
 */
@FeignClient(value = "yuanchu-media", fallbackFactory = FeignMediaServiceClientFallbackFactory.class)
public interface FeignMediaClient {
    @GetMapping("/media/file/{fileId}")
    YoshopUploadFileEntity getUploadFileById(@PathVariable("fileId") Integer fileId);
    @GetMapping("/media/fileList")
    List<YoshopUploadFileEntity> getUploadFileByIds(@RequestParam("fileIds") List<Integer> fileIds) ;
}
